#pragma once


//-----------------------------------------------------------------------------
//	Call when: need output to log some valuable info
//	Call result: output to game log
//-----------------------------------------------------------------------------
#define Log(message, ...)	gEnv->pSystem->GetLog()->log(message, __VA_ARGS__)

//-----------------------------------------------------------------------------
//	Call when: error situation can be handled by program
//	Call result: output to game log
//-----------------------------------------------------------------------------
#define Warning(message, ...) gEnv->pSystem->GetLog()->warning(message, __VA_ARGS__)

//-----------------------------------------------------------------------------
//	Call when: error situation can be handled by program but may result in
//							failure of some game subsystems
//	Call result: output to game log
//-----------------------------------------------------------------------------
#define Error(message, ...) gEnv->pSystem->GetLog()->error(message, __VA_ARGS__)

//-----------------------------------------------------------------------------
//	Call when: error situation can't be handled properly, impossible to avoid
//							game crash
//	Call result: output to log, immediately shutdown the game
//-----------------------------------------------------------------------------
//void CriticalError(const char* error)
//{
//	va_list args;
//	va_start(args, error);
//	//gEnv->pSystem->GetLog()->CriticalError(error, args);
//	va_end(args);
//
//	exit(0);
//}